/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 *
 * @author Endlesslove
 */
public class PhieuNhapSach  implements  Idata
{
    private String MaPhieuNhap;
    public String NgayNhap;

    public PhieuNhapSach(String ...param)
    {
        MaPhieuNhap = param[0];
        NgayNhap = param[1];
       
    }
    
    @Override
    public boolean Delete() 
    {
        return new BUS.PhieuNhapSach().Delete(this);
    }

    @Override
    public boolean Insert() 
    {
        return new BUS.PhieuNhapSach().Insert(this);
    }

    @Override
    public boolean Update() 
    {
        return new BUS.PhieuNhapSach().Update(this);
    }

    @Override
    public Object[] getObjects() 
    {
       return new Object[]
       {
         MaPhieuNhap, NgayNhap  
       };
    }
    @Override
    public String getID() 
    {
        return MaPhieuNhap;
    }
}
